<template>
    <div class="index">
        <md-button class="md-raised" @click="test">默认</md-button>
        <md-button class="md-raised md-primary">主要</md-button>
        <md-button class="md-raised md-accent">吸引</md-button>
        <md-button class="md-raised md-warn">暖色</md-button>
        <md-button class="md-raised md-primary" disabled>禁用</md-button>
        <md-button class="md-raised md-dense">浓厚</md-button>
    </div>
</template>

<script type="text/ecmascript-6">
    /**
     * @author 白雨浓
     * @date 17-8-29 下午8:20
     **/
    export default{
        name: 'NcIndex',
        data(){
            return {}
        },
        mounted(){
            this.$nextTick(() => {

            })
        },
        methods: {
            test(){
                this.$$get('/json')
                    .then(res => {
                        alert(JSON.stringify(res))
                    })
                    .catch(err => alert(JSON.stringify(err)))
            }
        }
    }
</script>

<style lang="stylus" rel="stylesheet/stylus">
    .index {
    }
</style>